package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.ServiceType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ServiceTypeDao extends BaseMapper<ServiceType> {

    @Select("select * from service_type")
     List<ServiceType> typeFindAll();
    @Select("select * from service_type where id=#{typeId}")
    ServiceType findByTypeId(Integer typeId);
}
